<%@ page import="ztc.common.UserBean" %>
<%--
  Created by IntelliJ IDEA.
  User: ztc
  Date: 16-4-9
  Time: 上午10:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>登陆</title>
  <link href="${pageContext.request.contextPath}/css/min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet">
  <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/js/min.js"></script>
  <script src="${pageContext.request.contextPath}/js/my.js"></script>
  <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/img/favicon.ico" />
</head>
<%
  request.setCharacterEncoding("utf-8");
  String msg=request.getParameter("msg");
  if(msg!=null){
%>
<script type="text/javascript">
  alert("<%=msg%>");
</script>
<%}%>
<body>
<div style="position:fixed;top: 20px; background:#ccc;height:50px;width:98%;left:1%;z-index:1;" id="topbar">
  <img src="/img/0.png" height="40px" style="position: relative;top: 10%;left: 5%;z-index: 2;">
  <img src="/img/135-round.png" height="40px" style="position: relative;top: 10%;">
  <img src="/img/435-round.png" height="40px" style="position: relative;top: 10%;">
  <label style="position: relative;top: 20%;">×××××××××× ××××××××××</label>
  <a href="/qr/issuance.jsp"><label style="position: relative;top: 20%;left:10%;">发布签到</label></a>
  <a href="/qr/showmem.jsp"><label style="position: relative;top: 20%;left:20%;">查看未保存布签到</label></a>
  <a href="/qr/showinf.jsp"><label style="position: relative;top: 20%;left:30%;">查看已保存布签到</label></a>
  <label style="position: relative;top: 20%;left:45%;" >
    <%=(session.getAttribute("userBean")==null?"<a href=\"/users/register.jsp\">注册</a>":"用户："+((UserBean)session.getAttribute("userBean")).getName())%></label>
</div>
<div class="container" style="position: relative;top: 60px;">
  <form class="form-signin" role="form" action="/users/login" method="post">
    <h3 class="form-signin-heading" align="center">用户登录</h3>
    <a href="register.jsp">新用户注册</a>
    <div class="form-group form-group-lg">
      <input type="text" name="email" class="form-control input-lg" required id="email" placeholder="注册时邮箱" />
    </div>
    <div class="form-group form-group-lg">
      <input type="password" name="password" class="form-control input-lg" required id="password" placeholder="密码"/>
    </div>
    <div>
      <button type="submit" id="button" class="btn btn-primary btn-block btn-lg">登录</button>
    </div>
  </form>
</div>
</body>
</html>
